<!-- saved from url=(0013)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ExtInt</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<!--- revised --->
<script language="JavaScript">
	function thisMovie(movieName) {
		var isIE = navigator.appName.indexOf("Microsoft") != -1;
		return (isIE) ? window[movieName] : document[movieName];
	}

	function makeCall(str) {
		thisMovie("extint").asFunc(str);
	}

    function writeFlashCookie(str){
		alert(str);
		thisMovie("extint").setFlashCookie(str);
	}

	function readFlashCookie(){
		document.forms["inForm"].flashCookie.value = thisMovie("extint").readFlashCookie();
	}

	function readJSCookie(){
		document.forms["inForm"].jsCookie.value = readCookie("JSCookie");
	}

	// This function "jsFunc" will be called from ActionScript
    function jsFunc(str) {
		document.forms["inForm"].inField.value = "ActionScript: " + str;
    }

	function createCookie(name,value,days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}

function readCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    }
    return null;
}

function eraseCookie(name) {
    createCookie(name,"",-1);
}

function alertCookie(name){
    alert(readCookie(name));
}
</script>
<!--- // revised --->
<style type="text/css">

input.dottedbutton
{
   font-family:Arial,sans-serif;
   border-style:groove;
}

</style>
</head>
<body bgcolor="#ffffff">

<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '330',
			'height', '245',
			'src', 'ExtInt',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'extint',
			'bgcolor', '#ffffff',
			'name', 'extint',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','always',
			'movie', 'ExtInt',
			'salign', ''
			); //end AC code
	}
</script>
<noscript>
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="330" height="245" id="extint" align="middle">
	<param name="allowScriptAccess" value="always" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="ExtInt.swf" />
	<param name="quality" value="high" />
	<param name="bgcolor" value="#ffffff" />
	<embed src="ExtInt.swf" quality="high" bgcolor="#ffffff" width="330" height="245" name="extint" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
</noscript>

<!--- revised --->
<form name="outForm">
	Sending to ActionScript:<br />
	<input type="text" name="outField" size=50 value="" />
	<input type="button" class="dottedbutton"  value="Send" onclick="makeCall(document.outForm.outField.value);"/><br />
	<input type="text" name="flashCookie" size=50 value="" />
	<input type="button" class="dottedbutton" value="Set Flash Cookie" onclick="writeFlashCookie(document.outForm.flashCookie.value);"/><br />
	<input type="text" name="jsCookie" size=50 value="" />
	<input type="button" class="dottedbutton" value="Set JS Cookie" onclick="createCookie('JSCookie', document.outForm.jsCookie.value, 10);"/>
	
</form>

    <input type="button" class="dottedbutton" value="ReadFlashCookie" onclick="readFlashCookie();"/>
	<input type="button" class="dottedbutton" value="ReadJSCookie" onclick="readJSCookie();"/>

<form name="inForm">
	Receiving from ActionScript:<br />
	<input type="text" name="inField" size=50><br />
	Flash Cookie:<br/>
    <input type="text" name="flashCookie" size=50><br />
	JS Cookie:<br/>
    <input type="text" name="jsCookie" size=50>
</form>
<!--- // revised --->

</body>
</html>